package com.app.service;

import com.app.model.TypeModel;
import com.app.util.Result;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;

public interface TypeService {


    TypeModel getTypeByTypeId(int id);

    Page<TypeModel> getPageTypeList(Integer page, Integer limit, String name, Integer type, List<Integer> idList, Integer sortType);//型号管理分页查询

    List<TypeModel> getTypeList(List<Integer> idList);//根据部门ID筛选

    void update(TypeModel model);

    void insert(TypeModel model);

    void delete(int id);

    Integer typeCount(List<Integer> idsList);

    List<TypeModel> typeListByDepId(List<Integer> idsList);


    List<TypeModel> getPlantByIds(List<Integer> appIdList);

    TypeModel selectByName(String modelTypeText);

    Result<Object> deleteTypeBatchByIds(String ids);
}
